package cn.wbu.zyh.mapper;

import cn.wbu.zyh.dto.ArticlePageQueryDTO;
import cn.wbu.zyh.dto.FavoritesDTO;
import cn.wbu.zyh.entity.Article;
import cn.wbu.zyh.entity.Favorites;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface FavoritesMapper {
    void favorite(FavoritesDTO favoritesDTO);

    int countByUsernameAndArticleId(String username, Long articleId);

    void deleteFavorite(Favorites favorites);

    void insertFavorite(Favorites favorites);
}
